// 1. 引入模块
const mogoose = require('mongoose');

// 2. 声明文档的结构
const usersModel = mogoose.Schema({
    name: String,
    age: Number,
    gender: String,
    tel: String,
    addr: String
})

// 创建数据模型并且导出
module.exports = mogoose.model('users', usersModel);